package com.dbh.lambda;

public class PersonMain {
    public static void main(String[] args) {
        PersonFactory<Person> personFactory = Person::new;
        Person person = personFactory.create("Peter", "Parker");
        System.out.println(person.lastName);
    }
}
